package com.study.design.pattern.pattern.structural.flyweight;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: gongsl
 * @Date: 2025-03-16 11:40
 * @description: 享元类-棋子单元
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ChessPieceUnit {
    /**
     * id
     */
    private int id;
    /**
     * 内容
     */
    private String text;
    /**
     * 颜色
     */
    private Color color;

    /**
     * 颜色
     */
    public enum Color {
        RED, BLACK
    }
}
